home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Interfaces & Libraries / interfaces / offscreen library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  1.6 KB  |  36 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:  
  2.     offscreen support library interfaces
  3.     by Cary Clark, Michael Fairman, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink
  4.     Copyright ©1987 - 1990 Apple Computer, Inc.  All rights reserved.
  5. */
  6.  
  7. #ifndef offscreenLibraryIncludes
  8.     #define offscreenLibraryIncludes
  9.     
  10.     #ifndef graphicsTypesIncludes
  11.         #include "graphics types.h"
  12.     #endif
  13.  
  14.     typedef struct {
  15.         gxShape       draw;   /* a gxBitmap gxShape which, when drawn, will transfer the offscreen to the display */
  16.         gxTransform       xform;  /* a gxTransform that will cause shapes owning it to draw offscreen. */
  17.         gxViewDevice  device; /* the offscreen gxViewDevice whose gxColorSpace, etc. you may change */
  18.         gxViewPort        port;       /* the offscreen gxViewPort which may be placed in any gxTransform's gxViewPort list */
  19.         gxViewGroup   group;  /* the global space in which the gxViewPort and gxViewDevice exist */
  20.     } offscreen;
  21.     
  22.     typedef struct viewPortBufferRecord **viewPortBuffer;
  23.  
  24.     /* (see the .c file for routine explanations) */
  25.     void CreateOffscreen(offscreen *target, gxShape bitmapShape);
  26.     void DisposeOffscreen(offscreen *target);
  27.     void CopyToBitmaps(gxShape target, gxShape source);
  28.  
  29.     viewPortBuffer NewViewPortBuffer(gxViewPort originalPort);
  30.     void DisposeViewPortBuffer(viewPortBuffer target);
  31.     boolean ValidViewPortBuffer(viewPortBuffer target);
  32.     boolean UpdateViewPortBuffer(viewPortBuffer target);
  33.     gxViewPort GetViewPortBufferViewPort(viewPortBuffer source);
  34.     gxShape GetViewPortBufferShape(viewPortBuffer source);
  35. #endif
  36.